<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
    <h:outputStylesheet name="css.css" library="css"/>
	<title>ログイン画面</title>
	<script language="JavaScript">
		if (window != top)
			top.location.href = location.href;
	</script>
</h:head>
<h:body>
	<div align="center">
		<br /> <br /> <br /> <br />
		<h:form>
			<p:messages autoUpdate="true" closable="true" />
			<p:panelGrid columns="2">
				<f:facet name="header">
					Educom日報
    			</f:facet>  
				<h:outputText value="ログイン名："/>
				<p:inputText value="#{loginController.userName}" required="true" requiredMessage="ログイン名を入力してください"/>
				<h:outputText value="パスワード："/>
				<p:password value="#{loginController.password}" required="true" requiredMessage="パスワードを入力してください"/>
				<f:facet name="footer">  
					<p:commandButton value="ログイン" id="login" action="#{loginController.login}" ajax="false" styleClass="button_big"/>
				</f:facet>
			</p:panelGrid>
			<br />
		</h:form>
	</div>
</h:body>
</html>
